namespace QMVnSoft.Opening
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormCDKTNBEditor : FormOpenningEditor
    {
        private IContainer components;
        private GBoxControl gBoxControl1;
        private GBoxControl gBoxControl2;
        private LabelControl lblChi_Tiet;
        private LabelControl lblDesc_EN;
        private LabelControl lblDien_Giai;
        private LabelControl lblDo_Am_PT;
        private LabelControl lblDo_Con_PT;
        private LabelControl lblDu_Co;
        private LabelControl lblDu_Co_Nt;
        private LabelControl lblDu_Co_Nt0;
        private LabelControl lblDu_Co0;
        private LabelControl lblDu_No;
        private LabelControl lblDu_No_Nt;
        private LabelControl lblDu_No_Nt0;
        private LabelControl lblDu_No0;
        private LabelControl lblDvt;
        private LabelControl lblGhi_Chu;
        private LabelControl lblH_Luong;
        private LabelControl lblHan_Dung;
        private LabelControl lblLo_Hang;
        private LabelControl lblMa_Bp;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Hd;
        private LabelControl lblMa_Kho;
        private LabelControl lblMa_Tte;
        private LabelControl lblMa_Vt;
        private LabelControl lblNgay_Ct;
        private LabelControl lblSo_Ct;
        private LabelControl lblSo_Du_Dau_Nam;
        private LabelControl lblSo_Du_Dau_Thang;
        private LabelControl lblSo_Luong;
        private LabelControl lblTk;
        private TextControl txtDesc_EN;
        private TextControl txtDien_Giai;
        private TextNumeric txtDo_Am_PT;
        private TextNumeric txtDo_Con_PT;
        private TextNumeric txtDu_Co;
        private TextNumeric txtDu_Co_Nt;
        private TextNumeric txtDu_Co_Nt0;
        private TextNumeric txtDu_Co0;
        private TextNumeric txtDu_No;
        private TextNumeric txtDu_No_Nt;
        private TextNumeric txtDu_No_Nt0;
        private TextNumeric txtDu_No0;
        private TextOption txtDvt;
        private TextControl txtDvt0;
        private TextNumeric txtH_Luong;
        private TextDate txtHan_Dung;
        private TextControl txtLo_Hang;
        private TextSearch txtMa_Bp;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Hd;
        private TextSearch txtMa_Kho;
        private TextOption txtMa_Tte;
        private TextSearch txtMa_Vt;
        private TextDate txtNgay_Ct;
        private TextControl txtSo_Ct;
        private TextNumeric txtSo_Luong;
        private TextNumeric txtSo_Luong9;
        private TextControl txtTen_Bp;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Hd;
        private TextControl txtTen_Kho;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Vt;
        private TextSearch txtTk;
        private TextNumeric txtTy_Gia;

        public FormCDKTNBEditor()
        {
            this.InitializeComponent();
            this.txtMa_Tte.InputMask = AppInstance.Currencies;
            if (!AppInstance.LotNumberCtrl)
            {
                this.lblLo_Hang.Visible = false;
                this.txtLo_Hang.Visible = false;
            }
            if (!AppInstance.DeadLineCtrl)
            {
                this.lblHan_Dung.Visible = false;
                this.txtHan_Dung.Visible = false;
            }
            if (!AppInstance.QualityCtrl)
            {
                this.lblH_Luong.Visible = false;
                this.txtH_Luong.Visible = false;
            }
            if (!AppInstance.DampCtrl)
            {
                this.lblDo_Am_PT.Visible = false;
                this.txtDo_Am_PT.Visible = false;
            }
            if (!AppInstance.AlcoholCtrl)
            {
                this.lblDo_Con_PT.Visible = false;
                this.txtDo_Con_PT.Visible = false;
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormCDKTNBEditor));
            this.lblNgay_Ct = new QMVnSoft.Controls.LabelControl();
            this.txtNgay_Ct = new QMVnSoft.Controls.TextDate();
            this.lblSo_Ct = new QMVnSoft.Controls.LabelControl();
            this.txtSo_Ct = new QMVnSoft.Controls.TextControl();
            this.txtMa_Tte = new QMVnSoft.Controls.TextOption();
            this.txtTy_Gia = new QMVnSoft.Controls.TextNumeric();
            this.lblMa_Tte = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Hd = new QMVnSoft.Controls.TextControl();
            this.txtTen_Bp = new QMVnSoft.Controls.TextControl();
            this.txtMa_Hd = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Hd = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Bp = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Bp = new QMVnSoft.Controls.LabelControl();
            this.txtDesc_EN = new QMVnSoft.Controls.TextControl();
            this.txtDien_Giai = new QMVnSoft.Controls.TextControl();
            this.lblDesc_EN = new QMVnSoft.Controls.LabelControl();
            this.lblDien_Giai = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk = new QMVnSoft.Controls.TextControl();
            this.txtTk = new QMVnSoft.Controls.TextSearch();
            this.lblTk = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Dt = new QMVnSoft.Controls.TextControl();
            this.txtMa_Dt = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Dt = new QMVnSoft.Controls.LabelControl();
            this.lblSo_Du_Dau_Thang = new QMVnSoft.Controls.LabelControl();
            this.lblDu_No = new QMVnSoft.Controls.LabelControl();
            this.txtDu_No = new QMVnSoft.Controls.TextNumeric();
            this.lblDu_Co = new QMVnSoft.Controls.LabelControl();
            this.txtDu_Co = new QMVnSoft.Controls.TextNumeric();
            this.lblDu_No_Nt = new QMVnSoft.Controls.LabelControl();
            this.txtDu_No_Nt = new QMVnSoft.Controls.TextNumeric();
            this.lblDu_Co_Nt = new QMVnSoft.Controls.LabelControl();
            this.txtDu_Co_Nt = new QMVnSoft.Controls.TextNumeric();
            this.lblDu_No0 = new QMVnSoft.Controls.LabelControl();
            this.lblDu_Co0 = new QMVnSoft.Controls.LabelControl();
            this.lblDu_No_Nt0 = new QMVnSoft.Controls.LabelControl();
            this.lblDu_Co_Nt0 = new QMVnSoft.Controls.LabelControl();
            this.lblSo_Du_Dau_Nam = new QMVnSoft.Controls.LabelControl();
            this.txtDu_No0 = new QMVnSoft.Controls.TextNumeric();
            this.txtDu_Co0 = new QMVnSoft.Controls.TextNumeric();
            this.txtDu_No_Nt0 = new QMVnSoft.Controls.TextNumeric();
            this.txtDu_Co_Nt0 = new QMVnSoft.Controls.TextNumeric();
            this.lblGhi_Chu = new QMVnSoft.Controls.LabelControl();
            this.gBoxControl1 = new QMVnSoft.Controls.GBoxControl();
            this.txtDvt0 = new QMVnSoft.Controls.TextControl();
            this.txtDvt = new QMVnSoft.Controls.TextOption();
            this.txtLo_Hang = new QMVnSoft.Controls.TextControl();
            this.txtSo_Luong = new QMVnSoft.Controls.TextNumeric();
            this.txtDo_Con_PT = new QMVnSoft.Controls.TextNumeric();
            this.txtDo_Am_PT = new QMVnSoft.Controls.TextNumeric();
            this.txtH_Luong = new QMVnSoft.Controls.TextNumeric();
            this.txtSo_Luong9 = new QMVnSoft.Controls.TextNumeric();
            this.txtMa_Kho = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Kho = new QMVnSoft.Controls.TextControl();
            this.txtTen_Vt = new QMVnSoft.Controls.TextControl();
            this.lblDo_Con_PT = new QMVnSoft.Controls.LabelControl();
            this.lblDvt = new QMVnSoft.Controls.LabelControl();
            this.lblDo_Am_PT = new QMVnSoft.Controls.LabelControl();
            this.lblH_Luong = new QMVnSoft.Controls.LabelControl();
            this.lblSo_Luong = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Vt = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Vt = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Kho = new QMVnSoft.Controls.LabelControl();
            this.txtHan_Dung = new QMVnSoft.Controls.TextDate();
            this.lblHan_Dung = new QMVnSoft.Controls.LabelControl();
            this.lblLo_Hang = new QMVnSoft.Controls.LabelControl();
            this.lblChi_Tiet = new QMVnSoft.Controls.LabelControl();
            this.gBoxControl2 = new QMVnSoft.Controls.GBoxControl();
            this.SuspendLayout();
            // 
            // lblNgay_Ct
            // 
            this.lblNgay_Ct.AutoSize = true;
            this.lblNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_Ct.Location = new System.Drawing.Point(12, 31);
            this.lblNgay_Ct.Name = "lblNgay_Ct";
            this.lblNgay_Ct.Size = new System.Drawing.Size(79, 14);
            this.lblNgay_Ct.TabIndex = 1;
            this.lblNgay_Ct.Text = "Ngày chứng từ";
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_Ct.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_Ct.Location = new System.Drawing.Point(133, 28);
            this.txtNgay_Ct.Mask = "00/00/0000";
            this.txtNgay_Ct.Name = "txtNgay_Ct";
            this.txtNgay_Ct.OldValue = null;
            this.txtNgay_Ct.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_Ct.TabIndex = 0;
            this.txtNgay_Ct.Value = ((object)(resources.GetObject("txtNgay_Ct.Value")));
            // 
            // lblSo_Ct
            // 
            this.lblSo_Ct.AutoSize = true;
            this.lblSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Ct.Location = new System.Drawing.Point(235, 31);
            this.lblSo_Ct.Name = "lblSo_Ct";
            this.lblSo_Ct.Size = new System.Drawing.Size(20, 14);
            this.lblSo_Ct.TabIndex = 1;
            this.lblSo_Ct.Text = "Số";
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.CheckTextSearched = false;
            this.txtSo_Ct.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtSo_Ct.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Ct.Location = new System.Drawing.Point(261, 28);
            this.txtSo_Ct.Name = "txtSo_Ct";
            this.txtSo_Ct.OldValue = null;
            this.txtSo_Ct.Size = new System.Drawing.Size(90, 20);
            this.txtSo_Ct.TabIndex = 1;
            this.txtSo_Ct.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtSo_Ct.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtSo_Ct.Value = ((object)(resources.GetObject("txtSo_Ct.Value")));
            // 
            // txtMa_Tte
            // 
            this.txtMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMa_Tte.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Tte.CheckTextSearched = false;
            this.txtMa_Tte.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Tte.InputMask = "USD,VND";
            this.txtMa_Tte.Location = new System.Drawing.Point(634, 28);
            this.txtMa_Tte.Name = "txtMa_Tte";
            this.txtMa_Tte.OldValue = null;
            this.txtMa_Tte.Size = new System.Drawing.Size(28, 20);
            this.txtMa_Tte.TabIndex = 2;
            this.txtMa_Tte.Text = "USD";
            this.txtMa_Tte.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtMa_Tte.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtMa_Tte.Value = "USD";
            this.txtMa_Tte.Validated += new System.EventHandler(this.txtMa_Tte_Validated);
            // 
            // txtTy_Gia
            // 
            this.txtTy_Gia.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTy_Gia.BackColor = System.Drawing.Color.White;
            this.txtTy_Gia.DisabledBackColor = System.Drawing.Color.Empty;
            this.txtTy_Gia.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTy_Gia.ForeColor = System.Drawing.Color.Black;
            this.txtTy_Gia.Location = new System.Drawing.Point(661, 28);
            this.txtTy_Gia.Name = "txtTy_Gia";
            this.txtTy_Gia.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTy_Gia.OldValue = null;
            this.txtTy_Gia.Size = new System.Drawing.Size(58, 20);
            this.txtTy_Gia.TabIndex = 3;
            this.txtTy_Gia.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTy_Gia.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.None;
            this.txtTy_Gia.Value = ((object)(resources.GetObject("txtTy_Gia.Value")));
            this.txtTy_Gia.Validated += new System.EventHandler(this.txtTy_Gia_Validated);
            // 
            // lblMa_Tte
            // 
            this.lblMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblMa_Tte.AutoSize = true;
            this.lblMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Tte.Location = new System.Drawing.Point(589, 31);
            this.lblMa_Tte.Name = "lblMa_Tte";
            this.lblMa_Tte.Size = new System.Drawing.Size(39, 14);
            this.lblMa_Tte.TabIndex = 64;
            this.lblMa_Tte.Text = "Tiền tệ";
            // 
            // txtTen_Hd
            // 
            this.txtTen_Hd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Hd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Hd.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Hd.CheckTextSearched = false;
            this.txtTen_Hd.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Enabled = false;
            this.txtTen_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Hd.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Location = new System.Drawing.Point(257, 73);
            this.txtTen_Hd.Name = "txtTen_Hd";
            this.txtTen_Hd.OldValue = null;
            this.txtTen_Hd.Size = new System.Drawing.Size(462, 13);
            this.txtTen_Hd.TabIndex = 79;
            this.txtTen_Hd.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Hd.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Hd.Value = ((object)(resources.GetObject("txtTen_Hd.Value")));
            // 
            // txtTen_Bp
            // 
            this.txtTen_Bp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Bp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Bp.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Bp.CheckTextSearched = false;
            this.txtTen_Bp.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Enabled = false;
            this.txtTen_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Bp.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Location = new System.Drawing.Point(257, 52);
            this.txtTen_Bp.Name = "txtTen_Bp";
            this.txtTen_Bp.OldValue = null;
            this.txtTen_Bp.Size = new System.Drawing.Size(462, 13);
            this.txtTen_Bp.TabIndex = 80;
            this.txtTen_Bp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Bp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Bp.Value = ((object)(resources.GetObject("txtTen_Bp.Value")));
            // 
            // txtMa_Hd
            // 
            this.txtMa_Hd.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Hd.CheckTextSearched = false;
            this.txtMa_Hd.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Hd.EmptyIsValid = true;
            this.txtMa_Hd.FieldDisplay = "Ten_Hd";
            this.txtMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Hd.FoundIsValid = true;
            this.txtMa_Hd.Location = new System.Drawing.Point(133, 70);
            this.txtMa_Hd.MaxLength = 32;
            this.txtMa_Hd.Name = "txtMa_Hd";
            this.txtMa_Hd.OldValue = null;
            this.txtMa_Hd.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Hd.TabIndex = 5;
            this.txtMa_Hd.TableName = "DMHD";
            this.txtMa_Hd.TextDisplay = this.txtTen_Hd;
            this.txtMa_Hd.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Hd.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Hd.Value = ((object)(resources.GetObject("txtMa_Hd.Value")));
            // 
            // lblMa_Hd
            // 
            this.lblMa_Hd.AutoSize = true;
            this.lblMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Hd.Location = new System.Drawing.Point(12, 73);
            this.lblMa_Hd.Name = "lblMa_Hd";
            this.lblMa_Hd.Size = new System.Drawing.Size(54, 14);
            this.lblMa_Hd.TabIndex = 77;
            this.lblMa_Hd.Text = "Hợp đồng";
            // 
            // txtMa_Bp
            // 
            this.txtMa_Bp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Bp.CheckTextSearched = false;
            this.txtMa_Bp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Bp.EmptyIsValid = true;
            this.txtMa_Bp.FieldDisplay = "Ten_Bp";
            this.txtMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Bp.FoundIsValid = true;
            this.txtMa_Bp.Location = new System.Drawing.Point(133, 49);
            this.txtMa_Bp.MaxLength = 32;
            this.txtMa_Bp.Name = "txtMa_Bp";
            this.txtMa_Bp.OldValue = null;
            this.txtMa_Bp.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Bp.TabIndex = 4;
            this.txtMa_Bp.TableName = "DMBP";
            this.txtMa_Bp.TextDisplay = this.txtTen_Bp;
            this.txtMa_Bp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Bp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Bp.Value = ((object)(resources.GetObject("txtMa_Bp.Value")));
            // 
            // lblMa_Bp
            // 
            this.lblMa_Bp.AutoSize = true;
            this.lblMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Bp.Location = new System.Drawing.Point(12, 52);
            this.lblMa_Bp.Name = "lblMa_Bp";
            this.lblMa_Bp.Size = new System.Drawing.Size(47, 14);
            this.lblMa_Bp.TabIndex = 78;
            this.lblMa_Bp.Text = "Bộ phận";
            // 
            // txtDesc_EN
            // 
            this.txtDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDesc_EN.Location = new System.Drawing.Point(133, 112);
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.Size = new System.Drawing.Size(586, 20);
            this.txtDesc_EN.TabIndex = 7;
            this.txtDesc_EN.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtDesc_EN.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDesc_EN.Value = ((object)(resources.GetObject("txtDesc_EN.Value")));
            // 
            // txtDien_Giai
            // 
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDien_Giai.Location = new System.Drawing.Point(133, 91);
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.Size = new System.Drawing.Size(586, 20);
            this.txtDien_Giai.TabIndex = 6;
            this.txtDien_Giai.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtDien_Giai.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDien_Giai.Value = ((object)(resources.GetObject("txtDien_Giai.Value")));
            // 
            // lblDesc_EN
            // 
            this.lblDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDesc_EN.Location = new System.Drawing.Point(12, 115);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new System.Drawing.Size(71, 14);
            this.lblDesc_EN.TabIndex = 83;
            this.lblDesc_EN.Text = "Diễn giải (EN)";
            // 
            // lblDien_Giai
            // 
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDien_Giai.Location = new System.Drawing.Point(12, 94);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new System.Drawing.Size(73, 14);
            this.lblDien_Giai.TabIndex = 84;
            this.lblDien_Giai.Text = "Diễn giải (VN)";
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Enabled = false;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Location = new System.Drawing.Point(257, 136);
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(462, 13);
            this.txtTen_Tk.TabIndex = 87;
            this.txtTen_Tk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk.Value = ((object)(resources.GetObject("txtTen_Tk.Value")));
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.FieldDisplay = "Ten_Tk";
            this.txtTk.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.Location = new System.Drawing.Point(133, 133);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.Size = new System.Drawing.Size(118, 20);
            this.txtTk.TabIndex = 8;
            this.txtTk.TableName = "DMTK";
            this.txtTk.TextDisplay = this.txtTen_Tk;
            this.txtTk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk.Value = ((object)(resources.GetObject("txtTk.Value")));
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(12, 136);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 86;
            this.lblTk.Text = "Tài khoản";
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(257, 157);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(462, 13);
            this.txtTen_Dt.TabIndex = 90;
            this.txtTen_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = ((object)(resources.GetObject("txtTen_Dt.Value")));
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.FoundIsValid = true;
            this.txtMa_Dt.Location = new System.Drawing.Point(133, 154);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Dt.TabIndex = 9;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = ((object)(resources.GetObject("txtMa_Dt.Value")));
            this.txtMa_Dt.Enter += new System.EventHandler(this.txtMa_Dt_Enter);
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 157);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(117, 14);
            this.lblMa_Dt.TabIndex = 89;
            this.lblMa_Dt.Text = "Đối tượng (tk công nợ)";
            // 
            // lblSo_Du_Dau_Thang
            // 
            this.lblSo_Du_Dau_Thang.AutoSize = true;
            this.lblSo_Du_Dau_Thang.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Du_Dau_Thang.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lblSo_Du_Dau_Thang.Location = new System.Drawing.Point(10, 185);
            this.lblSo_Du_Dau_Thang.Name = "lblSo_Du_Dau_Thang";
            this.lblSo_Du_Dau_Thang.Size = new System.Drawing.Size(90, 14);
            this.lblSo_Du_Dau_Thang.TabIndex = 89;
            this.lblSo_Du_Dau_Thang.Text = "Số dư đầu tháng:";
            // 
            // lblDu_No
            // 
            this.lblDu_No.AutoSize = true;
            this.lblDu_No.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_No.Location = new System.Drawing.Point(22, 212);
            this.lblDu_No.Name = "lblDu_No";
            this.lblDu_No.Size = new System.Drawing.Size(37, 14);
            this.lblDu_No.TabIndex = 86;
            this.lblDu_No.Text = "Dư nợ";
            // 
            // txtDu_No
            // 
            this.txtDu_No.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_No.Location = new System.Drawing.Point(133, 209);
            this.txtDu_No.Name = "txtDu_No";
            this.txtDu_No.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_No.OldValue = null;
            this.txtDu_No.Size = new System.Drawing.Size(140, 20);
            this.txtDu_No.TabIndex = 10;
            this.txtDu_No.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_No.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtDu_No.Value = ((object)(resources.GetObject("txtDu_No.Value")));
            // 
            // lblDu_Co
            // 
            this.lblDu_Co.AutoSize = true;
            this.lblDu_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_Co.Location = new System.Drawing.Point(22, 233);
            this.lblDu_Co.Name = "lblDu_Co";
            this.lblDu_Co.Size = new System.Drawing.Size(36, 14);
            this.lblDu_Co.TabIndex = 86;
            this.lblDu_Co.Text = "Dư có";
            // 
            // txtDu_Co
            // 
            this.txtDu_Co.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_Co.Location = new System.Drawing.Point(133, 230);
            this.txtDu_Co.Name = "txtDu_Co";
            this.txtDu_Co.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_Co.OldValue = null;
            this.txtDu_Co.Size = new System.Drawing.Size(140, 20);
            this.txtDu_Co.TabIndex = 11;
            this.txtDu_Co.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_Co.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtDu_Co.Value = ((object)(resources.GetObject("txtDu_Co.Value")));
            // 
            // lblDu_No_Nt
            // 
            this.lblDu_No_Nt.AutoSize = true;
            this.lblDu_No_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_No_Nt.Location = new System.Drawing.Point(22, 254);
            this.lblDu_No_Nt.Name = "lblDu_No_Nt";
            this.lblDu_No_Nt.Size = new System.Drawing.Size(78, 14);
            this.lblDu_No_Nt.TabIndex = 86;
            this.lblDu_No_Nt.Text = "Dư nợ ngoại tệ";
            // 
            // txtDu_No_Nt
            // 
            this.txtDu_No_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_No_Nt.Location = new System.Drawing.Point(133, 251);
            this.txtDu_No_Nt.Name = "txtDu_No_Nt";
            this.txtDu_No_Nt.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_No_Nt.OldValue = null;
            this.txtDu_No_Nt.Size = new System.Drawing.Size(140, 20);
            this.txtDu_No_Nt.TabIndex = 12;
            this.txtDu_No_Nt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_No_Nt.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtDu_No_Nt.Value = ((object)(resources.GetObject("txtDu_No_Nt.Value")));
            // 
            // lblDu_Co_Nt
            // 
            this.lblDu_Co_Nt.AutoSize = true;
            this.lblDu_Co_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_Co_Nt.Location = new System.Drawing.Point(22, 275);
            this.lblDu_Co_Nt.Name = "lblDu_Co_Nt";
            this.lblDu_Co_Nt.Size = new System.Drawing.Size(77, 14);
            this.lblDu_Co_Nt.TabIndex = 86;
            this.lblDu_Co_Nt.Text = "Dư có ngoại tệ";
            // 
            // txtDu_Co_Nt
            // 
            this.txtDu_Co_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_Co_Nt.Location = new System.Drawing.Point(133, 272);
            this.txtDu_Co_Nt.Name = "txtDu_Co_Nt";
            this.txtDu_Co_Nt.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_Co_Nt.OldValue = null;
            this.txtDu_Co_Nt.Size = new System.Drawing.Size(140, 20);
            this.txtDu_Co_Nt.TabIndex = 13;
            this.txtDu_Co_Nt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_Co_Nt.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtDu_Co_Nt.Value = ((object)(resources.GetObject("txtDu_Co_Nt.Value")));
            // 
            // lblDu_No0
            // 
            this.lblDu_No0.AutoSize = true;
            this.lblDu_No0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_No0.Location = new System.Drawing.Point(468, 212);
            this.lblDu_No0.Name = "lblDu_No0";
            this.lblDu_No0.Size = new System.Drawing.Size(37, 14);
            this.lblDu_No0.TabIndex = 86;
            this.lblDu_No0.Text = "Dư nợ";
            // 
            // lblDu_Co0
            // 
            this.lblDu_Co0.AutoSize = true;
            this.lblDu_Co0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_Co0.Location = new System.Drawing.Point(468, 233);
            this.lblDu_Co0.Name = "lblDu_Co0";
            this.lblDu_Co0.Size = new System.Drawing.Size(36, 14);
            this.lblDu_Co0.TabIndex = 86;
            this.lblDu_Co0.Text = "Dư có";
            // 
            // lblDu_No_Nt0
            // 
            this.lblDu_No_Nt0.AutoSize = true;
            this.lblDu_No_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_No_Nt0.Location = new System.Drawing.Point(468, 254);
            this.lblDu_No_Nt0.Name = "lblDu_No_Nt0";
            this.lblDu_No_Nt0.Size = new System.Drawing.Size(78, 14);
            this.lblDu_No_Nt0.TabIndex = 86;
            this.lblDu_No_Nt0.Text = "Dư nợ ngoại tệ";
            // 
            // lblDu_Co_Nt0
            // 
            this.lblDu_Co_Nt0.AutoSize = true;
            this.lblDu_Co_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDu_Co_Nt0.Location = new System.Drawing.Point(468, 275);
            this.lblDu_Co_Nt0.Name = "lblDu_Co_Nt0";
            this.lblDu_Co_Nt0.Size = new System.Drawing.Size(77, 14);
            this.lblDu_Co_Nt0.TabIndex = 86;
            this.lblDu_Co_Nt0.Text = "Dư có ngoại tệ";
            // 
            // lblSo_Du_Dau_Nam
            // 
            this.lblSo_Du_Dau_Nam.AutoSize = true;
            this.lblSo_Du_Dau_Nam.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Du_Dau_Nam.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lblSo_Du_Dau_Nam.Location = new System.Drawing.Point(456, 185);
            this.lblSo_Du_Dau_Nam.Name = "lblSo_Du_Dau_Nam";
            this.lblSo_Du_Dau_Nam.Size = new System.Drawing.Size(83, 14);
            this.lblSo_Du_Dau_Nam.TabIndex = 89;
            this.lblSo_Du_Dau_Nam.Text = "Số dư đầu năm:";
            // 
            // txtDu_No0
            // 
            this.txtDu_No0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_No0.Location = new System.Drawing.Point(579, 209);
            this.txtDu_No0.Name = "txtDu_No0";
            this.txtDu_No0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_No0.OldValue = null;
            this.txtDu_No0.Size = new System.Drawing.Size(140, 20);
            this.txtDu_No0.TabIndex = 14;
            this.txtDu_No0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_No0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtDu_No0.Value = ((object)(resources.GetObject("txtDu_No0.Value")));
            // 
            // txtDu_Co0
            // 
            this.txtDu_Co0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_Co0.Location = new System.Drawing.Point(579, 230);
            this.txtDu_Co0.Name = "txtDu_Co0";
            this.txtDu_Co0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_Co0.OldValue = null;
            this.txtDu_Co0.Size = new System.Drawing.Size(140, 20);
            this.txtDu_Co0.TabIndex = 15;
            this.txtDu_Co0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_Co0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.LocalAmount;
            this.txtDu_Co0.Value = ((object)(resources.GetObject("txtDu_Co0.Value")));
            // 
            // txtDu_No_Nt0
            // 
            this.txtDu_No_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_No_Nt0.Location = new System.Drawing.Point(579, 251);
            this.txtDu_No_Nt0.Name = "txtDu_No_Nt0";
            this.txtDu_No_Nt0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_No_Nt0.OldValue = null;
            this.txtDu_No_Nt0.Size = new System.Drawing.Size(140, 20);
            this.txtDu_No_Nt0.TabIndex = 16;
            this.txtDu_No_Nt0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_No_Nt0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtDu_No_Nt0.Value = ((object)(resources.GetObject("txtDu_No_Nt0.Value")));
            // 
            // txtDu_Co_Nt0
            // 
            this.txtDu_Co_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDu_Co_Nt0.Location = new System.Drawing.Point(579, 272);
            this.txtDu_Co_Nt0.Name = "txtDu_Co_Nt0";
            this.txtDu_Co_Nt0.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDu_Co_Nt0.OldValue = null;
            this.txtDu_Co_Nt0.Size = new System.Drawing.Size(140, 20);
            this.txtDu_Co_Nt0.TabIndex = 17;
            this.txtDu_Co_Nt0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDu_Co_Nt0.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtDu_Co_Nt0.Value = ((object)(resources.GetObject("txtDu_Co_Nt0.Value")));
            // 
            // lblGhi_Chu
            // 
            this.lblGhi_Chu.AutoSize = true;
            this.lblGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGhi_Chu.ForeColor = System.Drawing.Color.Blue;
            this.lblGhi_Chu.Location = new System.Drawing.Point(432, 463);
            this.lblGhi_Chu.Name = "lblGhi_Chu";
            this.lblGhi_Chu.Size = new System.Drawing.Size(287, 14);
            this.lblGhi_Chu.TabIndex = 89;
            this.lblGhi_Chu.Text = "Ghi chú: Số dư đầu năm dùng để lập bảng cân đối kế toán!";
            // 
            // gBoxControl1
            // 
            this.gBoxControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl1.Location = new System.Drawing.Point(-1, 194);
            this.gBoxControl1.Name = "gBoxControl1";
            this.gBoxControl1.Size = new System.Drawing.Size(734, 7);
            this.gBoxControl1.TabIndex = 91;
            this.gBoxControl1.TabStop = false;
            // 
            // txtDvt0
            // 
            this.txtDvt0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDvt0.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtDvt0.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtDvt0.CheckTextSearched = false;
            this.txtDvt0.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDvt0.Enabled = false;
            this.txtDvt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt0.ForeColor = System.Drawing.Color.Blue;
            this.txtDvt0.Location = new System.Drawing.Point(301, 393);
            this.txtDvt0.Name = "txtDvt0";
            this.txtDvt0.OldValue = null;
            this.txtDvt0.Size = new System.Drawing.Size(188, 13);
            this.txtDvt0.TabIndex = 114;
            this.txtDvt0.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtDvt0.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDvt0.Value = ((object)(resources.GetObject("txtDvt0.Value")));
            // 
            // txtDvt
            // 
            this.txtDvt.CheckTextSearched = false;
            this.txtDvt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDvt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDvt.InputMask = "";
            this.txtDvt.Location = new System.Drawing.Point(133, 369);
            this.txtDvt.Name = "txtDvt";
            this.txtDvt.OldValue = null;
            this.txtDvt.Size = new System.Drawing.Size(50, 20);
            this.txtDvt.TabIndex = 20;
            this.txtDvt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtDvt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDvt.Value = ((object)(resources.GetObject("txtDvt.Value")));
            this.txtDvt.Validated += new System.EventHandler(this.txtDvt_Validated);
            // 
            // txtLo_Hang
            // 
            this.txtLo_Hang.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtLo_Hang.CheckTextSearched = false;
            this.txtLo_Hang.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtLo_Hang.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLo_Hang.Location = new System.Drawing.Point(133, 411);
            this.txtLo_Hang.Name = "txtLo_Hang";
            this.txtLo_Hang.OldValue = null;
            this.txtLo_Hang.Size = new System.Drawing.Size(162, 20);
            this.txtLo_Hang.TabIndex = 23;
            this.txtLo_Hang.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtLo_Hang.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLo_Hang.Value = ((object)(resources.GetObject("txtLo_Hang.Value")));
            // 
            // txtSo_Luong
            // 
            this.txtSo_Luong.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Luong.Location = new System.Drawing.Point(133, 390);
            this.txtSo_Luong.Name = "txtSo_Luong";
            this.txtSo_Luong.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtSo_Luong.OldValue = null;
            this.txtSo_Luong.ReadOnly = true;
            this.txtSo_Luong.Size = new System.Drawing.Size(162, 20);
            this.txtSo_Luong.TabIndex = 22;
            this.txtSo_Luong.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSo_Luong.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.txtSo_Luong.Value = ((object)(resources.GetObject("txtSo_Luong.Value")));
            // 
            // txtDo_Con_PT
            // 
            this.txtDo_Con_PT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDo_Con_PT.Location = new System.Drawing.Point(579, 432);
            this.txtDo_Con_PT.Name = "txtDo_Con_PT";
            this.txtDo_Con_PT.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDo_Con_PT.OldValue = null;
            this.txtDo_Con_PT.Size = new System.Drawing.Size(140, 20);
            this.txtDo_Con_PT.TabIndex = 27;
            this.txtDo_Con_PT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDo_Con_PT.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.txtDo_Con_PT.Value = ((object)(resources.GetObject("txtDo_Con_PT.Value")));
            // 
            // txtDo_Am_PT
            // 
            this.txtDo_Am_PT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDo_Am_PT.Location = new System.Drawing.Point(579, 411);
            this.txtDo_Am_PT.Name = "txtDo_Am_PT";
            this.txtDo_Am_PT.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtDo_Am_PT.OldValue = null;
            this.txtDo_Am_PT.Size = new System.Drawing.Size(140, 20);
            this.txtDo_Am_PT.TabIndex = 26;
            this.txtDo_Am_PT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDo_Am_PT.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.txtDo_Am_PT.Value = ((object)(resources.GetObject("txtDo_Am_PT.Value")));
            // 
            // txtH_Luong
            // 
            this.txtH_Luong.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtH_Luong.Location = new System.Drawing.Point(579, 390);
            this.txtH_Luong.Name = "txtH_Luong";
            this.txtH_Luong.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtH_Luong.OldValue = null;
            this.txtH_Luong.Size = new System.Drawing.Size(140, 20);
            this.txtH_Luong.TabIndex = 25;
            this.txtH_Luong.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtH_Luong.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Percent;
            this.txtH_Luong.Value = ((object)(resources.GetObject("txtH_Luong.Value")));
            // 
            // txtSo_Luong9
            // 
            this.txtSo_Luong9.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtSo_Luong9.Location = new System.Drawing.Point(184, 369);
            this.txtSo_Luong9.Name = "txtSo_Luong9";
            this.txtSo_Luong9.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtSo_Luong9.OldValue = null;
            this.txtSo_Luong9.Size = new System.Drawing.Size(111, 20);
            this.txtSo_Luong9.TabIndex = 21;
            this.txtSo_Luong9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtSo_Luong9.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.txtSo_Luong9.Value = ((object)(resources.GetObject("txtSo_Luong9.Value")));
            this.txtSo_Luong9.Validated += new System.EventHandler(this.txtSo_Luong9_Validated);
            // 
            // txtMa_Kho
            // 
            this.txtMa_Kho.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Kho.CheckTextSearched = false;
            this.txtMa_Kho.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Kho.EmptyIsValid = true;
            this.txtMa_Kho.FieldDisplay = "Ten_Kho";
            this.txtMa_Kho.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Kho.FoundIsValid = true;
            this.txtMa_Kho.Location = new System.Drawing.Point(133, 327);
            this.txtMa_Kho.MaxLength = 32;
            this.txtMa_Kho.Name = "txtMa_Kho";
            this.txtMa_Kho.OldValue = null;
            this.txtMa_Kho.Size = new System.Drawing.Size(162, 20);
            this.txtMa_Kho.TabIndex = 18;
            this.txtMa_Kho.TableName = "DMKHO";
            this.txtMa_Kho.TextDisplay = this.txtTen_Kho;
            this.txtMa_Kho.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Kho.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Kho.Value = ((object)(resources.GetObject("txtMa_Kho.Value")));
            // 
            // txtTen_Kho
            // 
            this.txtTen_Kho.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Kho.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Kho.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Kho.CheckTextSearched = false;
            this.txtTen_Kho.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Kho.Enabled = false;
            this.txtTen_Kho.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Kho.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Kho.Location = new System.Drawing.Point(301, 330);
            this.txtTen_Kho.Name = "txtTen_Kho";
            this.txtTen_Kho.OldValue = null;
            this.txtTen_Kho.Size = new System.Drawing.Size(364, 13);
            this.txtTen_Kho.TabIndex = 108;
            this.txtTen_Kho.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Kho.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Kho.Value = ((object)(resources.GetObject("txtTen_Kho.Value")));
            // 
            // txtTen_Vt
            // 
            this.txtTen_Vt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Vt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Vt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Vt.CheckTextSearched = false;
            this.txtTen_Vt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Vt.Enabled = false;
            this.txtTen_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Vt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Vt.Location = new System.Drawing.Point(301, 351);
            this.txtTen_Vt.Name = "txtTen_Vt";
            this.txtTen_Vt.OldValue = null;
            this.txtTen_Vt.Size = new System.Drawing.Size(364, 13);
            this.txtTen_Vt.TabIndex = 107;
            this.txtTen_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Vt.Value = ((object)(resources.GetObject("txtTen_Vt.Value")));
            // 
            // lblDo_Con_PT
            // 
            this.lblDo_Con_PT.AutoSize = true;
            this.lblDo_Con_PT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDo_Con_PT.Location = new System.Drawing.Point(468, 435);
            this.lblDo_Con_PT.Name = "lblDo_Con_PT";
            this.lblDo_Con_PT.Size = new System.Drawing.Size(42, 14);
            this.lblDo_Con_PT.TabIndex = 110;
            this.lblDo_Con_PT.Text = "Độ cồn";
            // 
            // lblDvt
            // 
            this.lblDvt.AutoSize = true;
            this.lblDvt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDvt.Location = new System.Drawing.Point(12, 372);
            this.lblDvt.Name = "lblDvt";
            this.lblDvt.Size = new System.Drawing.Size(59, 14);
            this.lblDvt.TabIndex = 109;
            this.lblDvt.Text = "Đơn vị tính";
            // 
            // lblDo_Am_PT
            // 
            this.lblDo_Am_PT.AutoSize = true;
            this.lblDo_Am_PT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDo_Am_PT.Location = new System.Drawing.Point(468, 414);
            this.lblDo_Am_PT.Name = "lblDo_Am_PT";
            this.lblDo_Am_PT.Size = new System.Drawing.Size(38, 14);
            this.lblDo_Am_PT.TabIndex = 111;
            this.lblDo_Am_PT.Text = "Độ ẩm";
            // 
            // lblH_Luong
            // 
            this.lblH_Luong.AutoSize = true;
            this.lblH_Luong.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblH_Luong.Location = new System.Drawing.Point(468, 393);
            this.lblH_Luong.Name = "lblH_Luong";
            this.lblH_Luong.Size = new System.Drawing.Size(59, 14);
            this.lblH_Luong.TabIndex = 113;
            this.lblH_Luong.Text = "Hàm lượng";
            // 
            // lblSo_Luong
            // 
            this.lblSo_Luong.AutoSize = true;
            this.lblSo_Luong.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblSo_Luong.Location = new System.Drawing.Point(12, 393);
            this.lblSo_Luong.Name = "lblSo_Luong";
            this.lblSo_Luong.Size = new System.Drawing.Size(51, 14);
            this.lblSo_Luong.TabIndex = 112;
            this.lblSo_Luong.Text = "Số lượng";
            // 
            // txtMa_Vt
            // 
            this.txtMa_Vt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Vt.CheckTextSearched = false;
            this.txtMa_Vt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Vt.EmptyIsValid = true;
            this.txtMa_Vt.FieldDisplay = "Ten_Vt";
            this.txtMa_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Vt.FoundIsValid = true;
            this.txtMa_Vt.Location = new System.Drawing.Point(133, 348);
            this.txtMa_Vt.MaxLength = 32;
            this.txtMa_Vt.Name = "txtMa_Vt";
            this.txtMa_Vt.OldValue = null;
            this.txtMa_Vt.Size = new System.Drawing.Size(162, 20);
            this.txtMa_Vt.TabIndex = 19;
            this.txtMa_Vt.TableName = "DMVT";
            this.txtMa_Vt.TextDisplay = this.txtTen_Vt;
            this.txtMa_Vt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Vt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Vt.Value = ((object)(resources.GetObject("txtMa_Vt.Value")));
            this.txtMa_Vt.Validated += new System.EventHandler(this.txtMa_Vt_Validated);
            // 
            // lblMa_Vt
            // 
            this.lblMa_Vt.AutoSize = true;
            this.lblMa_Vt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Vt.Location = new System.Drawing.Point(12, 351);
            this.lblMa_Vt.Name = "lblMa_Vt";
            this.lblMa_Vt.Size = new System.Drawing.Size(88, 14);
            this.lblMa_Vt.TabIndex = 105;
            this.lblMa_Vt.Text = "Vật tư, hàng hóa";
            // 
            // lblMa_Kho
            // 
            this.lblMa_Kho.AutoSize = true;
            this.lblMa_Kho.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Kho.Location = new System.Drawing.Point(12, 330);
            this.lblMa_Kho.Name = "lblMa_Kho";
            this.lblMa_Kho.Size = new System.Drawing.Size(41, 14);
            this.lblMa_Kho.TabIndex = 106;
            this.lblMa_Kho.Text = "Mã kho";
            // 
            // txtHan_Dung
            // 
            this.txtHan_Dung.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtHan_Dung.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtHan_Dung.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtHan_Dung.Location = new System.Drawing.Point(133, 432);
            this.txtHan_Dung.Mask = "00/00/0000";
            this.txtHan_Dung.Name = "txtHan_Dung";
            this.txtHan_Dung.OldValue = null;
            this.txtHan_Dung.Size = new System.Drawing.Size(162, 20);
            this.txtHan_Dung.TabIndex = 24;
            this.txtHan_Dung.Value = ((object)(resources.GetObject("txtHan_Dung.Value")));
            // 
            // lblHan_Dung
            // 
            this.lblHan_Dung.AutoSize = true;
            this.lblHan_Dung.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblHan_Dung.Location = new System.Drawing.Point(12, 435);
            this.lblHan_Dung.Name = "lblHan_Dung";
            this.lblHan_Dung.Size = new System.Drawing.Size(53, 14);
            this.lblHan_Dung.TabIndex = 95;
            this.lblHan_Dung.Text = "Hạn dùng";
            // 
            // lblLo_Hang
            // 
            this.lblLo_Hang.AutoSize = true;
            this.lblLo_Hang.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLo_Hang.Location = new System.Drawing.Point(12, 414);
            this.lblLo_Hang.Name = "lblLo_Hang";
            this.lblLo_Hang.Size = new System.Drawing.Size(46, 14);
            this.lblLo_Hang.TabIndex = 96;
            this.lblLo_Hang.Text = "Lô hàng";
            // 
            // lblChi_Tiet
            // 
            this.lblChi_Tiet.AutoSize = true;
            this.lblChi_Tiet.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblChi_Tiet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lblChi_Tiet.Location = new System.Drawing.Point(10, 302);
            this.lblChi_Tiet.Name = "lblChi_Tiet";
            this.lblChi_Tiet.Size = new System.Drawing.Size(90, 14);
            this.lblChi_Tiet.TabIndex = 115;
            this.lblChi_Tiet.Text = "Chi tiết hàng hóa:";
            // 
            // gBoxControl2
            // 
            this.gBoxControl2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl2.Location = new System.Drawing.Point(-1, 311);
            this.gBoxControl2.Name = "gBoxControl2";
            this.gBoxControl2.Size = new System.Drawing.Size(734, 7);
            this.gBoxControl2.TabIndex = 117;
            this.gBoxControl2.TabStop = false;
            // 
            // FormCDKTNBEditor
            // 
            this.AddTitleText = "Thêm số dư đầu kỳ tài khoản ngoại bảng";
            this.ClientSize = new System.Drawing.Size(731, 486);
            this.Controls.Add(this.lblChi_Tiet);
            this.Controls.Add(this.gBoxControl2);
            this.Controls.Add(this.txtDvt);
            this.Controls.Add(this.txtLo_Hang);
            this.Controls.Add(this.txtSo_Luong);
            this.Controls.Add(this.txtDo_Con_PT);
            this.Controls.Add(this.txtDo_Am_PT);
            this.Controls.Add(this.txtH_Luong);
            this.Controls.Add(this.txtSo_Luong9);
            this.Controls.Add(this.txtMa_Kho);
            this.Controls.Add(this.txtTen_Vt);
            this.Controls.Add(this.lblDo_Con_PT);
            this.Controls.Add(this.lblDvt);
            this.Controls.Add(this.lblDo_Am_PT);
            this.Controls.Add(this.lblH_Luong);
            this.Controls.Add(this.txtTen_Kho);
            this.Controls.Add(this.lblSo_Luong);
            this.Controls.Add(this.txtMa_Vt);
            this.Controls.Add(this.lblMa_Vt);
            this.Controls.Add(this.lblMa_Kho);
            this.Controls.Add(this.txtHan_Dung);
            this.Controls.Add(this.lblHan_Dung);
            this.Controls.Add(this.lblLo_Hang);
            this.Controls.Add(this.txtDu_Co_Nt0);
            this.Controls.Add(this.txtDu_Co_Nt);
            this.Controls.Add(this.txtDu_No_Nt0);
            this.Controls.Add(this.txtDu_No_Nt);
            this.Controls.Add(this.txtDu_Co0);
            this.Controls.Add(this.txtDu_Co);
            this.Controls.Add(this.txtDu_No0);
            this.Controls.Add(this.txtDu_No);
            this.Controls.Add(this.txtTen_Dt);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblGhi_Chu);
            this.Controls.Add(this.lblSo_Du_Dau_Nam);
            this.Controls.Add(this.lblDu_Co_Nt0);
            this.Controls.Add(this.lblSo_Du_Dau_Thang);
            this.Controls.Add(this.lblDu_Co_Nt);
            this.Controls.Add(this.lblDu_No_Nt0);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.lblDu_No_Nt);
            this.Controls.Add(this.lblDu_Co0);
            this.Controls.Add(this.txtTen_Tk);
            this.Controls.Add(this.lblDu_Co);
            this.Controls.Add(this.lblDu_No0);
            this.Controls.Add(this.txtTk);
            this.Controls.Add(this.lblDu_No);
            this.Controls.Add(this.lblTk);
            this.Controls.Add(this.txtDesc_EN);
            this.Controls.Add(this.txtDien_Giai);
            this.Controls.Add(this.lblDesc_EN);
            this.Controls.Add(this.lblDien_Giai);
            this.Controls.Add(this.txtTen_Hd);
            this.Controls.Add(this.txtTen_Bp);
            this.Controls.Add(this.txtMa_Hd);
            this.Controls.Add(this.lblMa_Hd);
            this.Controls.Add(this.txtMa_Bp);
            this.Controls.Add(this.lblMa_Bp);
            this.Controls.Add(this.txtMa_Tte);
            this.Controls.Add(this.txtTy_Gia);
            this.Controls.Add(this.lblMa_Tte);
            this.Controls.Add(this.txtSo_Ct);
            this.Controls.Add(this.txtNgay_Ct);
            this.Controls.Add(this.lblSo_Ct);
            this.Controls.Add(this.lblNgay_Ct);
            this.Controls.Add(this.gBoxControl1);
            this.Controls.Add(this.txtDvt0);
            this.EditTitleText = "Sửa số dư đầu kỳ tài khoản ngoài  bảng";
            this.Name = "FormCDKTNBEditor";
            this.Text = "Thêm số dư đầu kỳ tài khoản ngoại bảng";
            this.Controls.SetChildIndex(this.txtDvt0, 0);
            this.Controls.SetChildIndex(this.gBoxControl1, 0);
            this.Controls.SetChildIndex(this.lblNgay_Ct, 0);
            this.Controls.SetChildIndex(this.lblSo_Ct, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ct, 0);
            this.Controls.SetChildIndex(this.txtSo_Ct, 0);
            this.Controls.SetChildIndex(this.lblMa_Tte, 0);
            this.Controls.SetChildIndex(this.txtTy_Gia, 0);
            this.Controls.SetChildIndex(this.txtMa_Tte, 0);
            this.Controls.SetChildIndex(this.lblMa_Bp, 0);
            this.Controls.SetChildIndex(this.txtMa_Bp, 0);
            this.Controls.SetChildIndex(this.lblMa_Hd, 0);
            this.Controls.SetChildIndex(this.txtMa_Hd, 0);
            this.Controls.SetChildIndex(this.txtTen_Bp, 0);
            this.Controls.SetChildIndex(this.txtTen_Hd, 0);
            this.Controls.SetChildIndex(this.lblDien_Giai, 0);
            this.Controls.SetChildIndex(this.lblDesc_EN, 0);
            this.Controls.SetChildIndex(this.txtDien_Giai, 0);
            this.Controls.SetChildIndex(this.txtDesc_EN, 0);
            this.Controls.SetChildIndex(this.lblTk, 0);
            this.Controls.SetChildIndex(this.lblDu_No, 0);
            this.Controls.SetChildIndex(this.txtTk, 0);
            this.Controls.SetChildIndex(this.lblDu_No0, 0);
            this.Controls.SetChildIndex(this.lblDu_Co, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk, 0);
            this.Controls.SetChildIndex(this.lblDu_Co0, 0);
            this.Controls.SetChildIndex(this.lblDu_No_Nt, 0);
            this.Controls.SetChildIndex(this.lblMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblDu_No_Nt0, 0);
            this.Controls.SetChildIndex(this.lblDu_Co_Nt, 0);
            this.Controls.SetChildIndex(this.lblSo_Du_Dau_Thang, 0);
            this.Controls.SetChildIndex(this.lblDu_Co_Nt0, 0);
            this.Controls.SetChildIndex(this.lblSo_Du_Dau_Nam, 0);
            this.Controls.SetChildIndex(this.lblGhi_Chu, 0);
            this.Controls.SetChildIndex(this.txtMa_Dt, 0);
            this.Controls.SetChildIndex(this.txtTen_Dt, 0);
            this.Controls.SetChildIndex(this.txtDu_No, 0);
            this.Controls.SetChildIndex(this.txtDu_No0, 0);
            this.Controls.SetChildIndex(this.txtDu_Co, 0);
            this.Controls.SetChildIndex(this.txtDu_Co0, 0);
            this.Controls.SetChildIndex(this.txtDu_No_Nt, 0);
            this.Controls.SetChildIndex(this.txtDu_No_Nt0, 0);
            this.Controls.SetChildIndex(this.txtDu_Co_Nt, 0);
            this.Controls.SetChildIndex(this.txtDu_Co_Nt0, 0);
            this.Controls.SetChildIndex(this.lblLo_Hang, 0);
            this.Controls.SetChildIndex(this.lblHan_Dung, 0);
            this.Controls.SetChildIndex(this.txtHan_Dung, 0);
            this.Controls.SetChildIndex(this.lblMa_Kho, 0);
            this.Controls.SetChildIndex(this.lblMa_Vt, 0);
            this.Controls.SetChildIndex(this.txtMa_Vt, 0);
            this.Controls.SetChildIndex(this.lblSo_Luong, 0);
            this.Controls.SetChildIndex(this.txtTen_Kho, 0);
            this.Controls.SetChildIndex(this.lblH_Luong, 0);
            this.Controls.SetChildIndex(this.lblDo_Am_PT, 0);
            this.Controls.SetChildIndex(this.lblDvt, 0);
            this.Controls.SetChildIndex(this.lblDo_Con_PT, 0);
            this.Controls.SetChildIndex(this.txtTen_Vt, 0);
            this.Controls.SetChildIndex(this.txtMa_Kho, 0);
            this.Controls.SetChildIndex(this.txtSo_Luong9, 0);
            this.Controls.SetChildIndex(this.txtH_Luong, 0);
            this.Controls.SetChildIndex(this.txtDo_Am_PT, 0);
            this.Controls.SetChildIndex(this.txtDo_Con_PT, 0);
            this.Controls.SetChildIndex(this.txtSo_Luong, 0);
            this.Controls.SetChildIndex(this.txtLo_Hang, 0);
            this.Controls.SetChildIndex(this.txtDvt, 0);
            this.Controls.SetChildIndex(this.gBoxControl2, 0);
            this.Controls.SetChildIndex(this.lblChi_Tiet, 0);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        protected override void OnReset()
        {
            if (base.NewChecked)
            {
                this.txtNgay_Ct.Value = AppInstance.OpeningDateOfSubEnterprice.AddDays(-1.0);
                this.txtSo_Ct.Value = DBNull.Value;
                this.txtMa_Tte.Value = AppInstance.DefaultCurrency;
                this.txtTy_Gia.Value = 1;
                this.txtDu_No.Value = 0;
                this.txtDu_Co.Value = 0;
                this.txtDu_No_Nt.Value = 0;
                this.txtDu_Co_Nt.Value = 0;
                this.txtDu_No0.Value = 0;
                this.txtDu_Co0.Value = 0;
                this.txtDu_No_Nt0.Value = 0;
                this.txtDu_Co_Nt0.Value = 0;
                this.txtMa_Kho.Value = "";
                this.txtTen_Kho.Value = "";
                this.txtMa_Vt.Value = "";
                this.txtTen_Vt.Value = "";
                this.txtDvt.Value = "";
                this.txtDvt0.Value = "";
                this.txtSo_Luong9.Value = 0;
                this.txtSo_Luong.Value = 0;
                this.txtLo_Hang.Value = DBNull.Value;
                this.txtHan_Dung.Value = DBNull.Value;
                this.txtH_Luong.Value = 0;
                this.txtDo_Am_PT.Value = 0;
                this.txtDo_Con_PT.Value = 0;
                base.TranCurrencyCode = AppInstance.DefaultCurrency;
            }
        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (AppInstance.EndingDateOfSubEnterprice >= AppInstance.OpeningDateOfSubEnterprice)
            {
                MessageBox.Show("Đã khóa dữ liệu!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (this.txtNgay_Ct.Value.Equals(DBNull.Value) || (((DateTime) this.txtNgay_Ct.Value) >= AppInstance.OpeningDateOfSubEnterprice))
            {
                MessageBox.Show("Chứng từ phải trước ngày: " + AppInstance.OpeningDateOfSubEnterprice.ToShortDateString(), AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTk.Text))
            {
                MessageBox.Show("Chưa nhập tài khoản!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if ((AppDataAccess.SelectDataRow(false, "DMTK", "Tk", this.txtTk.Text, null)["Tk_Dt"].ToString() == "C") && string.IsNullOrEmpty(this.txtMa_Dt.Text))
            {
                MessageBox.Show("Chưa nhập đối tượng!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (((this.txtDu_No.NumericValue == 0M) && (this.txtDu_Co.NumericValue == 0M)) && ((this.txtDu_No0.NumericValue == 0M) && (this.txtDu_Co0.NumericValue == 0M)))
            {
                MessageBox.Show("Chưa nhập số dư!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
                localCurrentRow["Ma_Dvcs"] = AppInstance.Subsidiary;
                localCurrentRow["Stt"] = AppDataAccess.Cong_So_Tt(AppInstance.Subsidiary);
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            base.SavedMasterOrder = localCurrentRow["Stt"];
            localCurrentRow["Ngay_Ct"] = this.txtNgay_Ct.Value;
            localCurrentRow["So_Ct"] = this.txtSo_Ct.Value;
            localCurrentRow["Ma_Tte"] = this.txtMa_Tte.Value;
            localCurrentRow["Ty_Gia"] = this.txtTy_Gia.Value;
            localCurrentRow["Ty_Gia_Ht"] = base.ExchangeRate;
            localCurrentRow["Ma_Bp"] = this.txtMa_Bp.Value;
            localCurrentRow["Ten_Bp"] = this.txtTen_Bp.Value;
            localCurrentRow["Ma_Hd"] = this.txtMa_Hd.Value;
            localCurrentRow["Ten_Hd"] = this.txtTen_Hd.Value;
            localCurrentRow["Dien_Giai"] = this.txtDien_Giai.Value;
            localCurrentRow["Desc_EN"] = this.txtDesc_EN.Value;
            localCurrentRow["Tk"] = this.txtTk.Value;
            localCurrentRow["Ten_Tk"] = this.txtTen_Tk.Value;
            localCurrentRow["Ma_Dt"] = this.txtMa_Dt.Value;
            localCurrentRow["Ten_Dt"] = this.txtTen_Dt.Value;
            localCurrentRow["Du_No"] = this.txtDu_No.Value;
            localCurrentRow["Du_Co"] = this.txtDu_Co.Value;
            localCurrentRow["Du_No_Nt"] = this.txtDu_No_Nt.Value;
            localCurrentRow["Du_Co_Nt"] = this.txtDu_Co_Nt.Value;
            localCurrentRow["Du_No0"] = this.txtDu_No0.Value;
            localCurrentRow["Du_Co0"] = this.txtDu_Co0.Value;
            localCurrentRow["Du_No_Nt0"] = this.txtDu_No_Nt0.Value;
            localCurrentRow["Du_Co_Nt0"] = this.txtDu_Co_Nt0.Value;
            localCurrentRow["Ma_Kho"] = this.txtMa_Kho.Value;
            localCurrentRow["Ten_Kho"] = this.txtTen_Kho.Value;
            localCurrentRow["Ma_Vt"] = this.txtMa_Vt.Value;
            localCurrentRow["Ten_Vt"] = this.txtTen_Vt.Value;
            localCurrentRow["Dvt"] = this.txtDvt.Value;
            localCurrentRow["Dvt0"] = this.txtDvt0.Value;
            localCurrentRow["So_Luong9"] = this.txtSo_Luong9.Value;
            localCurrentRow["So_Luong"] = this.txtSo_Luong.Value;
            localCurrentRow["Lo_Hang"] = this.txtLo_Hang.Value;
            localCurrentRow["Han_Dung"] = this.txtHan_Dung.Value;
            localCurrentRow["H_Luong"] = this.txtH_Luong.Value;
            localCurrentRow["Do_Am_PT"] = this.txtDo_Am_PT.Value;
            localCurrentRow["Do_Con_PT"] = this.txtDo_Con_PT.Value;
            new CDKTNBDataAccess().Save(base.NewChecked, localCurrentRow);
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtNgay_Ct.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtNgay_Ct.Value = base.LocalCurrentRow["Ngay_Ct"];
            this.txtSo_Ct.Value = base.LocalCurrentRow["So_Ct"];
            this.txtMa_Tte.Value = base.LocalCurrentRow["Ma_Tte"];
            this.txtTy_Gia.Value = base.LocalCurrentRow["Ty_Gia"];
            this.txtMa_Bp.Value = base.LocalCurrentRow["Ma_Bp"];
            this.txtTen_Bp.Value = base.LocalCurrentRow["Ten_Bp"];
            this.txtMa_Hd.Value = base.LocalCurrentRow["Ma_Hd"];
            this.txtTen_Hd.Value = base.LocalCurrentRow["Ten_Hd"];
            this.txtDien_Giai.Value = base.LocalCurrentRow["Dien_Giai"];
            this.txtDesc_EN.Value = base.LocalCurrentRow["Desc_EN"];
            this.txtTk.Value = base.LocalCurrentRow["Tk"];
            this.txtTen_Tk.Value = base.LocalCurrentRow["Ten_Tk"];
            this.txtMa_Dt.Value = base.LocalCurrentRow["Ma_Dt"];
            this.txtTen_Dt.Value = base.LocalCurrentRow["Ten_Dt"];
            this.txtDu_No.Value = base.LocalCurrentRow["Du_No"];
            this.txtDu_Co.Value = base.LocalCurrentRow["Du_Co"];
            this.txtDu_No_Nt.Value = base.LocalCurrentRow["Du_No_Nt"];
            this.txtDu_Co_Nt.Value = base.LocalCurrentRow["Du_Co_Nt"];
            this.txtDu_No0.Value = base.LocalCurrentRow["Du_No0"];
            this.txtDu_Co0.Value = base.LocalCurrentRow["Du_Co0"];
            this.txtDu_No_Nt0.Value = base.LocalCurrentRow["Du_No_Nt0"];
            this.txtDu_Co_Nt0.Value = base.LocalCurrentRow["Du_Co_Nt0"];
            this.txtMa_Kho.Value = base.LocalCurrentRow["Ma_Kho"];
            this.txtTen_Kho.Value = base.LocalCurrentRow["Ten_Kho"];
            this.txtMa_Vt.Value = base.LocalCurrentRow["Ma_Vt"];
            this.txtTen_Vt.Value = base.LocalCurrentRow["Ten_Vt"];
            this.txtDvt.Value = base.LocalCurrentRow["Dvt"];
            this.txtDvt0.Value = base.LocalCurrentRow["Dvt0"];
            this.txtSo_Luong9.Value = base.LocalCurrentRow["So_Luong9"];
            this.txtSo_Luong.Value = base.LocalCurrentRow["So_Luong"];
            this.txtLo_Hang.Value = base.LocalCurrentRow["Lo_Hang"];
            this.txtHan_Dung.Value = base.LocalCurrentRow["Han_Dung"];
            this.txtH_Luong.Value = base.LocalCurrentRow["H_Luong"];
            this.txtDo_Am_PT.Value = base.LocalCurrentRow["Do_Am_PT"];
            this.txtDo_Con_PT.Value = base.LocalCurrentRow["Do_Con_PT"];
            base.TranCurrencyCode = this.txtMa_Tte.Text;
            base.ExchangeRateOfBook = this.txtTy_Gia.NumericValue;
        }

        private void SetItemRatio()
        {
            decimal fieldData = 0M;
            if (this.txtDvt.Value.Equals(this.txtMa_Vt.GetFieldData("Dvt")))
            {
                fieldData = 1M;
            }
            else if (this.txtDvt.Value.Equals(this.txtMa_Vt.GetFieldData("Dvt0")))
            {
                fieldData = (decimal) this.txtMa_Vt.GetFieldData("He_So0");
            }
            else if (this.txtDvt.Value.Equals(this.txtMa_Vt.GetFieldData("Dvt1")))
            {
                fieldData = (decimal) this.txtMa_Vt.GetFieldData("He_So1");
            }
            else if (this.txtDvt.Value.Equals(this.txtMa_Vt.GetFieldData("Dvt2")))
            {
                fieldData = (decimal) this.txtMa_Vt.GetFieldData("He_So2");
            }
            else if (this.txtDvt.Value.Equals(this.txtMa_Vt.GetFieldData("Dvt3")))
            {
                fieldData = (decimal) this.txtMa_Vt.GetFieldData("He_So3");
            }
            this.txtSo_Luong.Value = this.txtSo_Luong9.NumericValue * fieldData;
        }

        private void txtDvt_Validated(object sender, EventArgs e)
        {
            if (this.txtDvt.ValueChanged)
            {
                this.SetItemRatio();
            }
        }

        private void txtMa_Dt_Enter(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.txtTk.Text))
            {
                this.txtTk.Focus();
            }
            else if (AppDataAccess.SelectDataRow(false, "DMTK", "Tk", this.txtTk.Text, null)["Tk_Dt"].ToString() != "C")
            {
                this.txtMa_Dt.Value = DBNull.Value;
                this.txtTen_Dt.Value = DBNull.Value;
                this.txtMa_Dt.ReadOnly = true;
            }
            else
            {
                this.txtMa_Dt.ReadOnly = false;
            }
        }

        private void txtMa_Tte_Validated(object sender, EventArgs e)
        {
            if (this.txtMa_Tte.ValueChanged)
            {
                base.TranCurrencyCode = this.txtMa_Tte.Text;
                this.txtTy_Gia.Value = base.ExchangeRateOfBook;
            }
        }

        private void txtMa_Vt_Validated(object sender, EventArgs e)
        {
            if (this.txtMa_Vt.ValueChanged)
            {
                this.txtDvt0.Value = this.txtMa_Vt.GetFieldData("Dvt");
                if (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt0").ToString()))
                {
                    this.txtDvt.Value = this.txtMa_Vt.GetFieldData("Dvt");
                    this.txtDvt.ReadOnly = true;
                }
                else
                {
                    string str = (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt").ToString()) ? "" : this.txtMa_Vt.GetFieldData("Dvt").ToString()) + (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt0").ToString()) ? "" : ("," + this.txtMa_Vt.GetFieldData("Dvt0").ToString())) + (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt1").ToString()) ? "" : ("," + this.txtMa_Vt.GetFieldData("Dvt1").ToString())) + (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt2").ToString()) ? "" : ("," + this.txtMa_Vt.GetFieldData("Dvt2").ToString())) + (string.IsNullOrEmpty(this.txtMa_Vt.GetFieldData("Dvt3").ToString()) ? "" : ("," + this.txtMa_Vt.GetFieldData("Dvt3").ToString()));
                    this.txtDvt.InputMask = str;
                    this.txtDvt.ReadOnly = false;
                }
            }
        }

        private void txtSo_Luong9_Validated(object sender, EventArgs e)
        {
            if (this.txtSo_Luong9.ValueChanged)
            {
                this.SetItemRatio();
            }
        }

        private void txtTy_Gia_Validated(object sender, EventArgs e)
        {
            if (this.txtTy_Gia.ValueChanged)
            {
                base.ExchangeRateOfBook = (decimal) this.txtTy_Gia.Value;
            }
        }
    }
}

